﻿package mortal.game.view.mount.newMountModuel
{
    import Message.DB.Tables.*;
    import com.mui.controls.*;
    import mortal.common.global.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class MountAdvancePanel extends GSprite
    {
        protected var _beforeAdvance:GImageBitmap;
        protected var _afterAdvance:GImageBitmap;
        protected var _currLevelName:GTextFiled;
        protected var _nextLevelName:GTextFiled;

        public function MountAdvancePanel()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            this._beforeAdvance = UIFactory.gImageBitmap(ImagesConst.BeforeAdvance, 0, 0, this);
            this._afterAdvance = UIFactory.gImageBitmap(ImagesConst.AfterAdvance, 405, 0, this);
            this._currLevelName = UIFactory.gTextField("", 30, 70, 30, 188, this, GlobalStyle.textFormatBai.setSize(21));
            this._currLevelName.multiline = true;
            this._currLevelName.wordWrap = true;
            this._currLevelName.textColor = 16775623;
            this._nextLevelName = UIFactory.gTextField("", 434, 70, 30, 188, this, GlobalStyle.textFormatBai.setSize(21));
            this._nextLevelName.multiline = true;
            this._nextLevelName.wordWrap = true;
            this._nextLevelName.textColor = 16775623;
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            this._beforeAdvance.dispose();
            this._beforeAdvance = null;
            this._afterAdvance.dispose();
            this._afterAdvance = null;
            this._currLevelName.dispose();
            this._currLevelName = null;
            this._nextLevelName.dispose();
            this._nextLevelName = null;
            return;
        }// end function

        public function setName(param1:TMountConfig, param2:TMountConfig) : void
        {
            this._currLevelName.text = param1.name;
            this._nextLevelName.text = param2.name;
            return;
        }// end function

    }
}
